OPC Studio User's Guide and Reference
EasyDAItemSubscriptionArguments<T> Constructor(DAItemGroupArguments,EasyDAItemChangedEventHandler<T>)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Generic Namespace > EasyDAItemSubscriptionArguments<T> Class > EasyDAItemSubscriptionArguments<T> Constructor : EasyDAItemSubscriptionArguments<T> Constructor(DAItemGroupArguments,EasyDAItemChangedEventHandler<T>)
The item group arguments object to be copied from.

The value of this parameter cannot be null (Nothing in Visual Basic).

A typed callback method to be invoked for each significant item change.

The value of this parameter can be null (Nothing in Visual Basic).

Initializes a new OpcLabs.EasyOpc.DataAccess.OperationModel.EasyDAItemSubscriptionArguments object from OpcLabs.EasyOpc.DataAccess.OperationModel.DAItemGroupArguments, and with specified typed callback method.
Syntax
'Declaration
 
Public Function New( _
   ByVal args As DAItemGroupArguments, _
   ByVal callback As OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler(Of T) _
)
'Usage
 
Dim args As DAItemGroupArguments
Dim callback As OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler(Of T)
 
Dim instance As New EasyDAItemSubscriptionArguments(Of T)(args, callback)
public EasyDAItemSubscriptionArguments<T>( 
   DAItemGroupArguments args,
   OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler<T> callback
)
public:
EasyDAItemSubscriptionArguments<T>( 
   DAItemGroupArguments^ args,
   OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler<T^>^ callback
)

Parameters

args
The item group arguments object to be copied from.

The value of this parameter cannot be null (Nothing in Visual Basic).

callback
A typed callback method to be invoked for each significant item change.

The value of this parameter can be null (Nothing in Visual Basic).

Remarks
If callback is a null reference, only the ItemChanged events are generated, but no callback method is invoked.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also